const mongoose = require('mongoose');

function dbConnect() {
    mongoose.connect('mongodb://192.168.31.1:27017/shoponline');
    mongoose.connection.once('open',function(err){
        if(!err){
            console.log('mongodb is connection...');
        }else{
            console.log('mongodb connect false...');
        }
    })
};
exports.dbConnect = dbConnect;